# my_set = {1,2,3}
# print(my_set)
my_set = set([1,2,3])
# print(my_set)
my_set.add(4)
# print(my_set)
# my_set.remove(2)
# print(my_set)
# my_set.discard(10)
# print(my_set)
# my_set.pop()
# print(my_set)

# if 3 in my_set:
#     print("3 在集合中")

# my_set.clear()
# print(my_set)


# set1 = {1,2,3}
# set2 = {3,4,5}
# print(set1|set2)
# print(set1.union(set2))

# print(set1 & set2)
# print(set1.intersection(set2))

# print(set1 - set2)
# print(set2 - set1)
# print(set1.difference(set2))

# print(set1^set2)
# print(set1.symmetric_difference(set2))

set1 = {1, 2}
set2 = {1, 2, 3}
# print(set1.issubset(set2))
# print(set2.issuperset(set1))

frozen_set = frozenset([1,2,3])
# print(frozen_set)
# frozen_set.add()

set1 = {1,2,3,4,5}
set2 = {4,5,6,7}
# set1.add(6)
# print(set1)
# set1.remove(2)
# print(set1)
# print(set1|set2)
# print(set1.union(set2))
# print(set1&set2)
# print(set1.intersection(set2))
# print(set1-set2)
# print(set1.difference(set2))

lis1=[1,2,3,4,4]
lis2=[3,4,5,6]

new_lis1=set(lis1)
new_lis2=set(lis2)
# print(new_lis1&new_lis2)
# print(new_lis1^new_lis2)

# def unique_chars(s):
#     new_set = set(s)
#     return new_set

# result = unique_chars("hello")
# print(result)
# print(set([1,2,3,4]))



